package cn.xingzhen.jfield;


import cn.xingzhen.jfield.ui.MainFrame;

import java.awt.*;

/**
 * @author wenqiang
 * @date 2023/5/5
 * @comment
 */
public class ApplicationMain {

    public static void main(String[] args) {
        run();
    }

    private static void run() {
        /*
        SplashScreen splash = SplashScreen.getSplashScreen();//创建闪屏对象
        if (splash == null) {
            System.out.println("没有指定闪屏图片");
            //JOptionPane.showMessageDialog(null, "没有找到闪屏图");
        } else {
            Graphics2D g2 = splash.createGraphics();//绘制闪屏
            Rectangle bounds = splash.getBounds();//返回闪屏边界
            splash.update();
        }
        */
        EventQueue.invokeLater(() -> {
            MainFrame mainFrame = new MainFrame();
            //mainFrame.pack();
            mainFrame.setVisible(true);
        });
    }
}
